﻿using B.S.DataBase.MyProject.ErrorCode;
using MediatR;
using MedicalPCTerminal.Write.API.Appcation.Commands.HealthMonitoringCommand;
using MedicalPCTerminal.Write.API.Appcation.Commands.ZJWWorkOrderTwoCommands;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace MedicalPCTerminal.Write.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class ZjwWorkOrderController : ControllerBase
    {
        private readonly IMediator mediator;

        public ZjwWorkOrderController(IMediator mediator)
        {
            this.mediator = mediator;
        }
        /// <summary>
        /// 添加医疗卡信息
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        [HttpPost]
        public async Task<APIResult<int>> AddMedicalCard(AddMedicalCardCommand request)
        {
            return await mediator.Send(request);
        }


    }
}
